package com.neuedu.service.impl;

import com.neuedu.dao.DeptmentDao;
import com.neuedu.dao.DoctorPositionDao;
import com.neuedu.factory.ClassFactory;
import com.neuedu.service.DeptmentService;

import java.util.List;
import java.util.Map;

public class DeptmentServiceImpl implements DeptmentService {
    @Override
    public List<Map<String, Object>> getAllDeptment() {
        DeptmentDao dcd = (DeptmentDao) ClassFactory.createObj("DeptmentDao");
        String sql = "SELECT * FROM deptment;";
        return dcd.getAllDeptmentDao(sql);
    }
}
